<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap-theme.min.css" />
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/user.css" />
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/fonts/font-awesome.min.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/ui-box.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/ui-base.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/ui-color.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/appcan.icon.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/appcan.control.css">
        <title>修改密码</title> 
        <script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/jquery.min.js"></script>
    </head>
    <body class="um-vp " ontouchstart>
        <div id="page_0" class="up ub ub-ver bc-bg" tabindex="0">
            <!--header开始-->
            <div id="header" class="uh bc-text-head ub bc-head">
                <div class="nav-btn" id="nav-left">
                    <div class="fa fa-angle-left fa-2x" onclick="location.href='${pageContext.request.contextPath}/consumer/customer/more'"></div>
                </div>
                <h1 class="ut ub-f1 ulev-3 ut-s tx-c" tabindex="0">密码修改</h1>
                <div class="nav-btn nav-bt" id="nav-right"></div>
            </div>
            <!--header结束--><!--content开始-->
            <div id="content" class="ub-f1 tx-l">
            	<form method="post" action="${pageContext.request.contextPath}/consumer/customer/mima_do" onsubmit="return ff()">
                <div style="width: 98%;margin: 0 auto;top: 10px">
                <div class="um-vp bc-bg" ontouchstart>
                <div class="c-wh uinnh5">
                    <div class="uba c-a1 bc-border">
                        <div class="ub uinn5 bc-border ubb">
                            <div class="ub ub-ac ub-f1">
                                <div class="uinput ub ub-f1">
                                    <label style="width: 8%;"><img src="${pageContext.request.contextPath}/resources/image/ic/jie.png" ></label>
                                    <label style="width: 88%;"><input placeholder="请输入旧密码" type="password" id="pass"  name="customer_password" class="ub-f1 dd"></label>
                                    
                                </div>
                            </div>
                        </div>
                        <div class="ub uinn5 bc-border ubb">
                            <div class="ub ub-ac ub-f1">
                                <div class="uinput ub ub-f1">
                                    <label style="width: 8%;"><img src="${pageContext.request.contextPath}/resources/image/ic/pass_word.png" ></label>
                                    <label style="width: 88%;"><input placeholder="请输入新密码" type="password" id="pw"  name="password" class="ub-f1 dd"></label>
                                    
                                </div>
                            </div>
                        </div>
                        <div class="ub uinn5 bc-border ubb">
                            <div class="ub ub-ac ub-f1">
                                <div class="uinput ub ub-f1">
                                    <label style="width: 8%;"><img src="${pageContext.request.contextPath}/resources/image/ic/chong.png" ></label>
                                    <label style="width: 88%;"><input placeholder="请重复新密码" type="password" id="re"   class="ub-f1 dd"></label>
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="nisuo jutop">
                    <input type="submit"  class="btn btn-primary btn-lg btn-block" value="确认"/>
                </div>
                <div class="text-center">
                	<span style="color: red;" id="tishi">${tishi}</span>
                </div>
                </form>
            </div>
            <!--content结束-->
			<script>
				function ff(){
					if($("#pass").val()==""){
						$("#tishi").text("旧密码不能为空");
						return false;
					}else if($("#pw").val()==""){
						$("#tishi").text("新密码不能为空");
						return false;
					}else if($("#re").val()==""){
						$("#tishi").text("重复密码不能为空");
					}else if($("#re").val()==$("#pw").val()){
						return true;
					}else{
						$("#tishi").text("两次输入的新密码不一致");
						return false;
					}
				}
			</script>
        </div>
    </body>
</html>